<template>
  <el-table-column 
	   :prop="col.prop"
       :label="col.label"
       align="center"
  >
    <template v-if="col.children">
      <my-column v-for="(item, index) in col.children"
                 :key="index"
                 :col="item"></my-column>
    </template>
  </el-table-column>
  
</template>

<script>
  export default {
    name: 'MyColumn',
    props: {
      col: {
        type: Object
      }
    }
  }
</script>
